In all cases, move the creation of a new transaction outside of the block
authoremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 09:09:22 +0000 (10:09 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 09:09:22 +0000 (10:09 +0100)
commit00cac7da1ccaeb07bc0d94c5c6453f55b6259d4b
treec3e3f53afd3f121bf392644ab4392ac5496b6fb8
parentab2a633ba1a22530e1724c8091eba020931a7fc6
In all cases, move the creation of a new transaction outside of the block
handling exceptions raised inside that transaction.  If the creation (start) of
the transaction fails, then t has not been assigned, and in any case no
transaction has been created, so it is wrong to attempt to abort that
(non-existent) transaction.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/xenstore/xstransact.py